smsc95xx: Use skb_cow_head to deal with cloned skbs
authorJames Hughes <james.hughes@raspberrypi.org>
Wed, 19 Apr 2017 10:13:40 +0000 (11:13 +0100)
committerRaspbian kernel package updater <root@raspbian.org>
Thu, 15 Feb 2018 17:37:06 +0000 (17:37 +0000)
commitfcb1a92f5a34a7ab739dba6ce40ebcf06b3cd43d
tree610402c0217f9147efa4d82f0d691e0e7b3f2bba
parent6b9735bfbdc974284a830a53b5fb8c3ecd56ae17
smsc95xx: Use skb_cow_head to deal with cloned skbs

The driver was failing to check that the SKB wasn't cloned
before adding checksum data.
Replace existing handling to extend/copy the header buffer
with skb_cow_head.

Signed-off-by: James Hughes <james.hughes@raspberrypi.org>
Acked-by: Eric Dumazet <edumazet@google.com>
Acked-by: Woojung Huh <Woojung.Huh@microchip.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/smsc95xx.c